/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

/**
 *
 * @author puspa
 */
public class Product {
    private int idProduct;
    private int nim;
    private String name;

    /**
     * Konstruktor
     */
    public Product() {
    }

    /**
     * Ini konstruktor dengan parameter name
     * @param name
     */
    public Product(String name) {
        this.name = name;
    }

    /**
     * Fungsi untuk menampilkan properti name
     */
    public void tampilName() {
        System.out.println(getName());
    }

    /**
     * @return the idProduct
     */
    public int getIdProduct() {
        return idProduct;
    }

    /**
     * @param idProduct the idProduct to set
     */
    public void setIdProduct(int idProduct) {
        this.idProduct = idProduct;
    }

    /**
     * @return the nim
     */
    public int getNim() {
        return nim;
    }

    /**
     * @param nim the nim to set
     */
    public void setNim(int nim) {
        this.nim = nim;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }
    
}
